package com.bestv.search.common.service.impl;

import com.bestv.search.common.dao.KeywordDao;
import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.Keyword;
import com.bestv.search.common.service.KeywordManager;

public class KeywordManagerImpl implements KeywordManager {

    protected KeywordDao keywordDao;

    public KeywordManagerImpl() {
    }

    public KeywordDao getKeywordDao() {
        return keywordDao;
    }

    public void setKeywordDao(KeywordDao keywordDao) {
        this.keywordDao = keywordDao;
    }

    public Keyword getKeywordByName(DataSourceKey key, String keyword) {
        return keywordDao.getKeywordByName(keyword);
    }
}
